<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
namespace AlibabaCloud\Client\Filter;

class CredentialFilter
{
    public static function bearerToken($bearerToken)
    {
        if(!is_string($bearerToken)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Bearer Token must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($bearerToken === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Bearer Token cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $bearerToken;
    }
    public static function publicKeyId($publicKeyId)
    {
        if(!is_string($publicKeyId)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Public Key ID must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($publicKeyId === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Public Key ID cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $publicKeyId;
    }
    public static function privateKeyFile($privateKeyFile)
    {
        if(!is_string($privateKeyFile)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Private Key File must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($privateKeyFile === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Private Key File cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $privateKeyFile;
    }
    public static function roleName($roleName)
    {
        if(!is_string($roleName)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("Role Name must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($roleName === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("Role Name cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        return $roleName;
    }
    public static function AccessKey($accessKeyId, $accessKeySecret)
    {
        if(!is_string($accessKeyId)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("AccessKey ID must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($accessKeyId === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("AccessKey ID cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if(!is_string($accessKeySecret)) {
            throw new \AlibabaCloud\Client\Exception\ClientException("AccessKey Secret must be a string", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
        if($accessKeySecret === "") {
            throw new \AlibabaCloud\Client\Exception\ClientException("AccessKey Secret cannot be empty", \AlibabaCloud\Client\SDK::INVALID_ARGUMENT);
        }
    }
}

?>